<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'insert'">新增</h3>
	<h3 class="modal-title" ng-if="param.type == 'update'">修改</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">班次号：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="班次号"
							ng-model="param.data.shiftNo" required
							ng-readonly="true" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">提示：</label>
					<div class="col-sm-7">
						<p>司机和车辆保存即可更改，不选择则不修改。</p>
					</div>
				</div>
				<div class="form-group" >
					<label class="col-sm-3 control-label">车票数：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" ng-maxlength="3"
							placeholder="车票数" ng-model="param.data.tickets"
							ng-pattern="/^[0-9]*$/" required />
					</div>
					<p>当前总票数{{param.data.tickets}}张。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">分配司机：</label>
					<div class="col-sm-5">
						<ui-select ng-model="driverlist.selected" theme="bootstrap">
						<ui-select-match placeholder="选择司机">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices
							repeat="driver in driverlist | propsFilter:{name: $select.search}">
						<span ng-bind-html="driver.name | highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
					</div>
					<p>可根据司机姓名搜索。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">分配车辆：</label>
					<div class="col-sm-5">
						<ui-select ng-model="vehiclelist.selected" theme="bootstrap">
						<ui-select-match placeholder="选择车辆">车牌号：{{$select.selected.plate}},车辆类型：{{$select.selected.model}}</ui-select-match>
						<ui-select-choices
							repeat="vehicle in vehiclelist | propsFilter:{plate: $select.search}">
						<span ng-bind-html="'车牌号：'+vehicle.plate+',车辆类型：'+vehicle.model| highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
					</div>
					<p>可根据车牌号搜索。</p>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>